package com.linln.modules.system.vo;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.Locale;

public class UserExpandVo {
    DateTimeFormatter nowPattern = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss", Locale.CHINA);
    private String id;

    private String userId;

    private String sources;

    private Date createTime;

    private String nickName;

    private String mobile;

    private String avatar;

    private String times;

    public String getTimes() {
        String end = LocalDateTime.ofInstant(this.getCreateTime().toInstant(), ZoneId.systemDefault()).format(nowPattern);
        return end;
    }

    public UserExpandVo setTimes(String times) {
        this.times = times;
        return this;
    }

    public String getId() {
        return id;
    }

    public UserExpandVo setId(String id) {
        this.id = id;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public UserExpandVo setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getSources() {
        return sources;
    }

    public UserExpandVo setSources(String sources) {
        this.sources = sources;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public UserExpandVo setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getNickName() {
        return nickName;
    }

    public UserExpandVo setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public UserExpandVo setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getAvatar() {
        return avatar;
    }

    public UserExpandVo setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }
}
